INCLUDE_DIR= -I/usr/X11R6/include
LIB_DIR= -L/usr/X11R6/lib
LIBS= -lGL -lGLU -lglut -lXmu -lXi -lstdc++ -lm

COMPILE= gcc -O2 $(INCLUDE_DIR)

OUTPUT=hitviewer

OBJECTS= main.o

all : $(OUTPUT)

$(OUTPUT) : $(OBJECTS)
	$(COMPILE) $(OBJECTS) $(LIB_DIR) $(LIBS)   -o $(OUTPUT)

main.o : main.cpp
	$(COMPILE) -c main.cpp

clean:
	rm $(OUTPUT) $(OBJECTS)

